#include "MainWidget.h"
#include "ui_MainWidget.h"
#include <QTabBar>
#include <QDebug>
MainWidget::MainWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MainWidget)
{
    ui->setupUi(this);


    dialWidget = new DialWidget(this);
    ui->tabWidget->setStyleSheet("QTabBar::tab{width:115}");
    QString strDial = "拨号";
    ui->tabWidget->addTab(dialWidget, strDial);


    loginWidget = new LoginWidget(this);
    ui->tabWidget->setStyleSheet("QTabBar::tab{width:115}");
    QString strLogin = "登录";
    ui->tabWidget->addTab(loginWidget, strLogin);

    settingsWidget = new SettingsWidget();
    ui->tabWidget->addTab(settingsWidget, "设置" );


}

MainWidget::~MainWidget()
{
    delete dialWidget;
    delete loginWidget;
    delete settingsWidget;
    delete ui;
}
